<div style="color: #000;" ng-controller="ProfitDetailListController">
    <div class="row" style="margin-bottom: 5px;">
        <div class="col-lg-12">
            <form id="profitDetailForm" name="queryForm" class="form-inline" >
                <div class="form-group">
                    <label class="sr-only" for="profitDetailForm_daterange">日期范围</label>
                    <input type="text" id="profitDetailForm_daterange" lay-date-picker="" range="→" ng-model="profitDetailCtrl.daterange1" placeholder="日期范围"/>
                </div>
                <button type="submit" class="btn btn-default" ng-click="profitDetailCtrl.search()">查询</button>
            </form>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-12 col-md-12"><span style="font-size: 16px;color: white;" >总金额：<span style="font-weight: 700">{{profitDetailCtrl.resultList.total_amount}}</span></span></div>
    </div>
    <div class="row">
        <div class="col-lg-12 col-md-12">
            <table class="table table-hover data_table" style="margin-top: 10px;">
                <tr>
                    <td>订单号</td>
                    <td>订单金额</td>
                    <td>用户名</td>
                    <td>当前分润比率(%)</td>
                    <td>当前分润金额</td>
                    <td>下级代理</td>
                    <td>下级分润比率(%)</td>
                    <td>下级分润金额</td>
                    <td>赚取分润金额</td>
                    <td>生成时间</td>
                </tr>
                <tr ng-repeat="row in profitDetailCtrl.resultList.data_list">
                    <td>{{row.order_id }}</td>
                    <td>{{row.order_amount }}</td>
                    <td>{{row.user_name }}</td>
                    <td>{{row.curr_profit_rate }}</td>
                    <td>{{row.curr_profit_amount }}</td>
                    <td>{{row.sub_level_agent_name }}</td>
                    <td>{{row.sub_level_profit_rate }}</td>
                    <td>{{row.sub_level_profit_amount }}</td>
                    <td>{{row.real_profit_amount }}</td>
                    <td>{{row.create_time }}</td>
                </tr>
            </table>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-12 col md-12" style="text-align: center">
            <div paging
                 page="profitDetailCtrl.resultList.page_index"
                 page-size="profitDetailCtrl.resultList.page_size"
                 total="profitDetailCtrl.resultList.total_count"
                 paging-action="profitDetailCtrl.search(page)">
            </div>
        </div>
    </div>
</div>